Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ml-array-xy-max-y

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-array-xy-max-y

Find the maximum ordinate value in a range of abscissas of a {x:[], y:[]}

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
104
increased by14.29%
Maintainers
4
Weekly downloads
 
Created
Source

array-xy-max-y

NPM version npm download

Find the maximum ordinate value in a range of abscissas.

Installation

$ npm install --save ml-array-xy-max-y

Usage

import maxY from 'ml-array-xy-max-y';

const points = {
  x: [1, 2, 3, 4, 5, 6],
  y: [10, 2, 8, 4, 5, 20]
};
const options = {
  from: { index: 1 },
  to: { value: 5 }
};
const result = maxY(points, options);

/* result -> {
    index: 2,
    value: 8
} */

License

MIT

FAQs

Package last updated on 04 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc